﻿using Basic.FormGatewaryModular.Interface;
using Basic.FormRemoteModel.PhysicalPage;
using Basic.FormRemoteModel.PhysicalPage.Model;

namespace Basic.FormGatewaryModular.Services
{
    internal class PhysicalPageService : IPhysicalPageService
    {
        public PhysicalPageDto[] Gets ( long formId )
        {
            return new GetPhysicalPages { FormId = formId }.Send();
        }

        public long Set ( PhysicalPageSet set )
        {
            return new SetPhysicalPage
            {
                Data = set
            }.Send();
        }
    }
}
